package Design_patterns.creator_mode.factory.factory_method;


/**
 * @description: 测试简单工厂咖啡店类
 **/

public class Client {
    public static void main(String[] args) {
        CoffeeStore coffeeStore = new CoffeeStore();
        coffeeStore.setCoffeeFactory(new AmericanCoffeeFactory());
        coffeeStore.setCoffeeFactory(new LatteCoffeeFactory());
        coffeeStore.orderCoffee();
    }
}
